package com.zs.ssh.dao.impl;

import com.zs.ssh.dao.ISessionUtilDao;
import com.zs.ssh.dao.IUserDao;
import com.zs.ssh.entity.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @author: 赵圣
 * @date: 2018年9月27日下午4:03:18
 * @Version 1.0
 */
@Repository("userDao")
public class UserDaoImpl implements IUserDao {

    @Autowired
    ISessionUtilDao sessionUtil;

    @Override
    public boolean addUser(User user) {
        return sessionUtil.saveOrUpdate(user);
    }

}
